package com.ffcs.ffxtc.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ffcs.ffxtc.domain.dto.CategoryDTO;
import com.ffcs.ffxtc.domain.entity.DvCategory;
import com.ffcs.ffxtc.domain.vo.CategoryVO;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 组件类目表 Mapper 接口
 * </p>
 *
 * @author 张正兴
 * @since 2024-04-13
 */
@Mapper
public interface DvCategoryMapper extends MPJBaseMapper<DvCategory> {

    /**
     * 自定义分页查询
     *
     * @param page
     * @param params
     * @return
     */
    IPage<List<CategoryDTO>> getCategoryList(IPage<?> page, @Param("params") CategoryVO params);
}
